<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <link rel="stylesheet" href="./首页.css">
</head>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.6.0/dist/echarts.min.js"></script>

<body>
    <div class="edit-modal">
        <div class="modal-content">
            <span class="close" onclick="closeEditModal()">&times;</span>
            <h2>编辑讲师</h2>
            <form id="editForm">
                <div class="form-group">
                    <label for="editName">姓名</label>
                    <input type="text" id="editName" required>
                </div>
                <div class="form-group">
                    <label for="editBirthday">出生日期</label>
                    <input type="date" id="editBirthday" required>
                </div>
                <div class="form-group">
                    <label>性别</label>
                    <div class="radio-group">
                        <label>
                                <input type="radio" name="editGender" value="0" checked> 男
                            </label>
                        <label>
                                <input type="radio" name="editGender" value="1"> 女
                            </label>
                    </div>
                </div>
                <button onclick="saveEdit()">保存更改</button>
                <button onclick="closeEditModal()">取消</button>
            </form>
        </div>
    </div>




    <div class="grzx">
        <div class="form-container">
            <h2 style="text-align: center;">个人中心</h2>
            <form id="personalInfoForm">

                <div class="form-row">
                    <label>姓名</label>
                    <input type="text" id="name" required>
                </div>


                <div class="form-row">
                    <label>年龄</label>
                    <input type="number" id="age" required>
                </div>

                <div class="form-row">
                    <label>邮箱</label>
                    <input type="email" id="email" required>
                </div>


                <div class="form-row">
                    <label>手机号码</label>
                    <input type="tel" id="phone" required>
                </div>


                <div class="form-row">
                    <label>性别</label>
                    <select id="sex" required>
                    <option value="0">男</option>
                    <option value="1">女</option>
                </select>
                </div>

                <div class="form-row" style="margin-left: 90px;">
                    <button class="submit-btn" onclick="addPersonalInfo()">提交</button>
                    <button class="submit-btn" style="margin-left: 175px;" onclick="grzx_none()">取消</button>
                </div>
            </form>
        </div>


        <div id="personalInfoContainer"></div>
    </div>

    <div class="modal-overlay" id="modalOverlay" style="display: none;">
        <div class="modal">

            <div class="modal-body">
                <div class="form-group">
                    <label for="name">姓名</label>
                    <input type="text" id="name" placeholder="请输入姓名" style="width: 300px; margin: auto;">
                </div>
                <div class="form-group">
                    <label for="nickname">昵称</label>
                    <input type="text" id="nickname" placeholder="请输入昵称" style="width: 300px; margin: auto;">
                </div>
                <div class="form-group">
                    <label for="birthday">生日</label>
                    <input type="date" id="birthday" style="width: 300px; margin: auto;">
                </div>
                <div class="form-group">
                    <label>手机号</label>
                    <input type="text" id="phone" placeholder="请输入手机号" style="width: 300px; margin: auto;">
                </div>
                <div class="form-group">
                    <label>性别</label>
                    <div class="radio-group">
                        <input type="text" id="sex" placeholder="请输入性别 0男/1女" style="width: 300px; margin: auto;">
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="secondary" onclick="closeModal()">取消</button>
                <button class="primary" onclick="addTeacher()">添加</button>
            </div>
        </div>

    </div>
    <div class="box">

        <div class="xq">

        </div>
        <!-- 左侧栏 -->

        <div class="left">


            <div class="left_tx" class="admin">
                <img src="https://img0.baidu.com/it/u=469658040,1533709882&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1741107600&t=425d84b74f940575a066e5e860b140fb" alt="用户头像">
                <p class="admin">admin</p>
            </div>
            <ul>
                <li class="tab1">仪表盘</li>
                <li class="tab2" style="background-color: #15395a;">讲师管理</li>
            </ul>

        </div>
        <div class="right_A">

            <div class="box_right">

                <div class="header">
                    <div class="menu-icon"></div>
                    <div class="user-info">
                        <img src="https://img0.baidu.com/it/u=469658040,1533709882&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1741107600&t=425d84b74f940575a066e5e860b140fb" alt="用户头像">
                        <a href="#" class="admin">个人中心</a>
                        <a href="#" class="logout">退出</a>

                    </div>




                </div>
                <div class="breadcrumb">
                    <a href="#">讲师管理</a> / <a href="#">讲师列表</a>
                </div>

                <div id="main" style="width: 600px;height:400px;margin: 200px auto;display: inline-block;"></div>
                <div id="main_a" style="width: 600px;height:400px;margin: 200px auto;display: inline-block;"></div>
            </div>
        </div>

        <!-- 右侧内容 -->
        <div class="right">
            <div class="header">
                <div class="menu-icon"></div>
                <div class="user-info">
                    <img src="https://img0.baidu.com/it/u=469658040,1533709882&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1741107600&t=425d84b74f940575a066e5e860b140fb" alt="用户头像">
                    <a href="#" class="admin">个人中心</a>
                    <a href="#" class="logout">退出</a>
                </div>
            </div>
            <div class="breadcrumb">
                <a href="#">讲师管理</a> / <a href="#">讲师列表</a>
            </div>
            <div class="content">
                <input type="text" name="" id="" style="width: 150px;margin-top: 30px;" class="ss" placeholder="通过名字搜索"><button style="background-color: greenyellow;color: rgb(0, 0, 0);" onclick="ss()">搜索</button>
                <button class="add-teacher" onclick="add()">添加讲师</button>
            </div>


            <div>
                <table id="teacherTable">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>姓名</th>
                            <th>昵称</th>
                            <th>出生日期</th>
                            <th>性别</th>
                            <th>教师类型</th>
                            <th>手机号</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody id="teacherBody">

                    </tbody>
                </table>
            </div>
            <div class="pagination" id="pagination">

            </div>



        </div>
    </div>

    <div class="del-message" id="delMessage">
        删除成功！
    </div>

    <script src="https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>

    <script src="./首页.js"></script>
</body>


</html>